package it.valeandre.omino.fragment;

import it.valeandre.omino.InterFragmentInterface;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.view.View;

public abstract class UpgradableBaseFragment extends Fragment {
	private InterFragmentInterface mInterFragmentInterface;
	protected Handler mHandler = new Handler();
		
	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		
		mInterFragmentInterface = (InterFragmentInterface) activity;
	}
	
	public InterFragmentInterface getInterFragmentInterface() {
		return mInterFragmentInterface;
	}
	
	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		
	}
	
	public abstract void refresh();
	
}
